﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WastedMechanics
{
    public class TalkReply : TalkConditional
    {
        public List<TalkText> Text;        
        public TalkReactions Response;
        public event Action Actions;

        public TalkReply()
        {
            Text = new List<TalkText>();
        }

        public void CallActions()
        {
            if (Actions != null)
                Actions();
        }


        public bool IsEnding
        {
            get
            {
                return Response.Reactions.Count == 0;
            }
        }
    }
}
